<template lant="html">
  <div>
    <div class="alert">
      <img src="../assets/images/index_15.png" alt="">
      <div class="title">
        <p>今日头条</p>
        <span>你关心的，才是头条</span>
      </div>
      <div class="right">
        <span>立即打开</span>
        <i class="glyphicon glyphicon-remove close" @click="close"></i>

      </div>
    </div>
  </div>
</template>

<script>
  export default {
    components: {},
    methods: {
      close(){
        this.$emit("to-close")
      }
    }
  }
</script>
<style lang="scss">
  @import "../assets/css/base.css";

  @function rem($px) {
    @return $px / 20 + rem
  }

  .clearfixe:after {
    display: block;
    clear: both;
    content: '';
  }

  .alert {
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 0!important;
    width: 100%;
    height: rem(60);
    padding: rem(10) 0;
    background: rgba(0, 0, 0, 0.3);
    img {
      float: left;
      width: rem(40);
      margin-left: rem(20);
    }
    .title {
      float: left;
      margin-left: rem(10);
      color: white;
      font-size: rem(15);
      p {
        margin: 0;
      }
    }
    .right {
      float: right;
      span {
        color: white;
        width: rem(80);
        height: rem(40);
        border-radius: rem(10);
        background: #ff414a;
        text-align: center;
        display: inline-block;
        line-height: rem(40);
      }
      .close {
        font-size: rem(30);
        line-height: rem(40);
        color: white;
        opacity: 1;
        padding: 0 rem(10);
        cursor: pointer;
      }
    }
  }
</style>
